#include "SpriteCamera.h"



Sprite::SpriteCamera::SpriteCamera( void ):m_up(NULL),m_pos(NULL),m_target(NULL)
{
	D3DXMatrixIdentity(&m_ViewMat);
}

Sprite::SpriteCamera::~SpriteCamera( void )
{
	Delete(m_up);
	Delete(m_pos);
	Delete(m_target);
}


Sprite::SpriteMat* Sprite::SpriteCamera::init( SpriteVec3* pos,SpriteVec3* target,SpriteVec3* up )
 {


	 m_pos = pos;
	 m_target = target;
	 m_up = up;
	 return D3DXMatrixLookAtLH(&m_ViewMat,m_pos,m_target,m_up);
 }
